home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / udev / rules.d / 024_hpmud.rules next >
Text File  |  2008-10-13  |  2KB  |  35 lines

  1. # Udev rules file for HP printer products.
  2.  
  3. # Modifications for Debian GNU/Linux hplip package:
  4. #   MODE removed as will be set by udev to default 0664
  5. #   OWNER="root" is a noop and has been replaced by "lp" for cups access
  6. #   GROUP="scanner" makes sense for HP printer products. As the majority
  7. #     of products are scanners and want to interact with sane(d)
  8. #     if specific ipProduct can be specified then group scanner can be narrowed
  9. #   Upstream sane.d/dll modifications in udev only works at boot time.
  10. #     For Debian we can ship /etc/sane.d/dll.d/hplip
  11. #   This udev rule needs to be loaded before 025_libgphoto2.rules as that also 
  12. #     contains Photosmart products
  13.  
  14. ACTION!="add", GOTO="hpmud_rules_end"
  15. SUBSYSTEM=="ppdev", OWNER="lp", GROUP="scanner"
  16. SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="pid_test"
  17. SUBSYSTEM!="usb_device", GOTO="hpmud_rules_end"
  18.  
  19. LABEL="pid_test"
  20.  
  21. # Check for AiO products (0x03f0xx11).
  22. SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??11", OWNER="lp", GROUP="scanner"
  23. # Check for Photosmart products (0x03f0xx02).
  24. SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??02", OWNER="lp", GROUP="scanner"
  25. # Check for Business Inkjet products (0x03f0xx12).
  26. SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??12", OWNER="lp", GROUP="scanner"
  27. # Check for Deskjet products (0x03f0xx04).
  28. SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??04", OWNER="lp", GROUP="scanner"
  29. # Check for LaserJet products (0x03f0xx17).
  30. SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??17", OWNER="lp", GROUP="scanner"
  31.  
  32. LABEL="hpmud_rules_end"
  33.